import 'package:flutter/material.dart';
import 'package:ost_flutter_module/common/adapt.dart';
import 'package:ost_flutter_module/common/styles.dart';
import 'package:ost_flutter_module/common/utils.dart';

class EmptyPage extends StatelessWidget {
  final String image, title;

  const EmptyPage({Key key, this.image, this.title}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(top: Adapt.px(130)),
      child: Center(
        child: Column(
          // mainAxisSize: MainAxisSize.min,
          children: [
            Utils.svgAssets('empty'),
            SizedBox(height: Adapt.px(20)),
            Text(title ?? '找不到相关内容,试试换一个关键词吧~', style: TextStyles.titleStyle),
          ],
        ),
      ),
    );
  }
}
